﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005F5 RID: 1525
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GachaCeiling : IMessage<GachaCeiling>, IMessage, IEquatable<GachaCeiling>, IDeepCloneable<GachaCeiling>, IBufferMessage
	{
		// Token: 0x17001397 RID: 5015
		// (get) Token: 0x0600449E RID: 17566 RVA: 0x000BBD6F File Offset: 0x000B9F6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GachaCeiling> Parser
		{
			get
			{
				return GachaCeiling._parser;
			}
		}

		// Token: 0x17001398 RID: 5016
		// (get) Token: 0x0600449F RID: 17567 RVA: 0x000BBD76 File Offset: 0x000B9F76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GachaCeilingReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001399 RID: 5017
		// (get) Token: 0x060044A0 RID: 17568 RVA: 0x000BBD88 File Offset: 0x000B9F88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GachaCeiling.Descriptor;
			}
		}

		// Token: 0x060044A1 RID: 17569 RVA: 0x000BBD8F File Offset: 0x000B9F8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling()
		{
		}

		// Token: 0x060044A2 RID: 17570 RVA: 0x000BBDA4 File Offset: 0x000B9FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling(GachaCeiling other) : this()
		{
			this.isClaimed_ = other.isClaimed_;
			this.ceilingNum_ = other.ceilingNum_;
			this.avatarList_ = other.avatarList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060044A3 RID: 17571 RVA: 0x000BBDF1 File Offset: 0x000B9FF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling Clone()
		{
			return new GachaCeiling(this);
		}

		// Token: 0x1700139A RID: 5018
		// (get) Token: 0x060044A4 RID: 17572 RVA: 0x000BBDF9 File Offset: 0x000B9FF9
		// (set) Token: 0x060044A5 RID: 17573 RVA: 0x000BBE01 File Offset: 0x000BA001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsClaimed
		{
			get
			{
				return this.isClaimed_;
			}
			set
			{
				this.isClaimed_ = value;
			}
		}

		// Token: 0x1700139B RID: 5019
		// (get) Token: 0x060044A6 RID: 17574 RVA: 0x000BBE0A File Offset: 0x000BA00A
		// (set) Token: 0x060044A7 RID: 17575 RVA: 0x000BBE12 File Offset: 0x000BA012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CeilingNum
		{
			get
			{
				return this.ceilingNum_;
			}
			set
			{
				this.ceilingNum_ = value;
			}
		}

		// Token: 0x1700139C RID: 5020
		// (get) Token: 0x060044A8 RID: 17576 RVA: 0x000BBE1B File Offset: 0x000BA01B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<GachaCeilingAvatar> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x060044A9 RID: 17577 RVA: 0x000BBE23 File Offset: 0x000BA023
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GachaCeiling);
		}

		// Token: 0x060044AA RID: 17578 RVA: 0x000BBE34 File Offset: 0x000BA034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GachaCeiling other)
		{
			return other != null && (other == this || (this.IsClaimed == other.IsClaimed && this.CeilingNum == other.CeilingNum && this.avatarList_.Equals(other.avatarList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060044AB RID: 17579 RVA: 0x000BBE94 File Offset: 0x000BA094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsClaimed)
			{
				num ^= this.IsClaimed.GetHashCode();
			}
			if (this.CeilingNum != 0U)
			{
				num ^= this.CeilingNum.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060044AC RID: 17580 RVA: 0x000BBEFA File Offset: 0x000BA0FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060044AD RID: 17581 RVA: 0x000BBF02 File Offset: 0x000BA102
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060044AE RID: 17582 RVA: 0x000BBF0C File Offset: 0x000BA10C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsClaimed)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.IsClaimed);
			}
			this.avatarList_.WriteTo(ref output, GachaCeiling._repeated_avatarList_codec);
			if (this.CeilingNum != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.CeilingNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060044AF RID: 17583 RVA: 0x000BBF78 File Offset: 0x000BA178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsClaimed)
			{
				num += 2;
			}
			if (this.CeilingNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CeilingNum);
			}
			num += this.avatarList_.CalculateSize(GachaCeiling._repeated_avatarList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060044B0 RID: 17584 RVA: 0x000BBFD8 File Offset: 0x000BA1D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GachaCeiling other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsClaimed)
			{
				this.IsClaimed = other.IsClaimed;
			}
			if (other.CeilingNum != 0U)
			{
				this.CeilingNum = other.CeilingNum;
			}
			this.avatarList_.Add(other.avatarList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060044B1 RID: 17585 RVA: 0x000BC039 File Offset: 0x000BA239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060044B2 RID: 17586 RVA: 0x000BC044 File Offset: 0x000BA244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 114U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.CeilingNum = input.ReadUInt32();
						}
					}
					else
					{
						this.avatarList_.AddEntriesFrom(ref input, GachaCeiling._repeated_avatarList_codec);
					}
				}
				else
				{
					this.IsClaimed = input.ReadBool();
				}
			}
		}

		// Token: 0x04001B0D RID: 6925
		private static readonly MessageParser<GachaCeiling> _parser = new MessageParser<GachaCeiling>(() => new GachaCeiling());

		// Token: 0x04001B0E RID: 6926
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B0F RID: 6927
		public const int IsClaimedFieldNumber = 1;

		// Token: 0x04001B10 RID: 6928
		private bool isClaimed_;

		// Token: 0x04001B11 RID: 6929
		public const int CeilingNumFieldNumber = 15;

		// Token: 0x04001B12 RID: 6930
		private uint ceilingNum_;

		// Token: 0x04001B13 RID: 6931
		public const int AvatarListFieldNumber = 14;

		// Token: 0x04001B14 RID: 6932
		private static readonly FieldCodec<GachaCeilingAvatar> _repeated_avatarList_codec = FieldCodec.ForMessage<GachaCeilingAvatar>(114U, GachaCeilingAvatar.Parser);

		// Token: 0x04001B15 RID: 6933
		private readonly RepeatedField<GachaCeilingAvatar> avatarList_ = new RepeatedField<GachaCeilingAvatar>();
	}
}
